from rest_framework.serializers import ModelSerializer
from home import models


class NavSer(ModelSerializer):
    class Meta:
        model = models.NavModel
        fields = '__all__'


class BannerSer(ModelSerializer):
    class Meta:
        model = models.BannerModel
        fields = ["title", "img", "url"]
